home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.rock;
-
- import com.extensibility.app.UI;
- import java.awt.event.ActionEvent;
- import javax.swing.AbstractAction;
- import javax.swing.text.DefaultEditorKit;
- import javax.swing.text.JTextComponent;
- import javax.swing.text.TextAction;
-
- public class RTable$PasteAction extends RAction {
- // $FF: synthetic field
- final RTable this$0;
- TextAction textPaste;
-
- public RTable$PasteAction(RTable var1) {
- super(UI.getString("edit.item.paste"), 86);
- this.this$0 = var1;
- this.textPaste = new DefaultEditorKit.PasteAction();
- this.updateEnabled();
- }
-
- public void updateEnabled() {
- JTextComponent var1 = this.this$0.getCellEditorAsJTextComponent();
- if (var1 != null) {
- ((AbstractAction)this).setEnabled(this.textPaste.isEnabled());
- } else {
- boolean var2 = this.this$0.pasteable();
- ((AbstractAction)this).setEnabled(var2);
- }
-
- }
-
- public void actionOccurred(ActionEvent var1) {
- JTextComponent var2 = this.this$0.getCellEditorAsJTextComponent();
- if (var2 != null) {
- this.textPaste.actionPerformed(var1);
- } else {
- this.this$0.paste();
- }
-
- RTable.access$5000071(this.this$0);
- }
- }
-